macos: Send dragging events directly to the display
authorArjan Molenaar <gaphor@gmail.com>
Sat, 21 Jan 2023 13:54:12 +0000 (14:54 +0100)
committerArjan Molenaar <gaphor@gmail.com>
Sat, 21 Jan 2023 13:54:12 +0000 (14:54 +0100)
commit52f6acd398b7a83f53f3605a9d50d51c3b48286c
treeeadbd238a417ca9eb1ee0637e60aec4aabcfb021
parent136c1ccd2c4646f401e356f80ee88b2762767259
macos: Send dragging events directly to the display

Instead of adding events to the application event queue, dispatch
them directly to the right display. We know this when the event is
to be dispatched.

This is the same as used for the `sendEvent` method in `GdkMacosWindow`.

To achieve this I factored out the generic NSEvent to GdkEvent translation.
We can send an event directly, when we receive it in the GdkMacosWindow
directly from the OS.
gdk/macos/GdkMacosWindow.c
gdk/macos/gdkmacosdisplay-private.h
gdk/macos/gdkmacosdisplay-translate.c
gdk/macos/gdkmacoseventsource-private.h
gdk/macos/gdkmacoseventsource.c